<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改钱宝对账文件')" />
    <th:block th:include="include :: datetimepicker-css" />
        <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-qbMerWithdrawal-edit" th:object="${qbMerWithdrawal}">
            <input name="msgType" th:field="*{msgType}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">交易类型  1761-WAP最优惠消费1801-WAP好优选消费1821-WAP全积分消费1841-手机pay1861-银联在线1941-云闪付1101-消费2101-消费冲正3101消费撤销5151-退货1011-预授权2011-预授权冲正3011-预授权撤销4011-预授权撤销冲正1091-预授权完成2091-预授权完成冲正3091预授权完成撤销1211 主动提现1221 自动提现1311 满额提现1161 余额查询：</label>
                <div class="col-sm-8">
                    <select name="msgType" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">交易应答码  00成功：</label>
                <div class="col-sm-8">
                    <div class="radio-box">
                        <input type="radio" name="tradStatus" value="">
                        <label th:for="tradStatus" th:text="未知"></label>
                    </div>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">交易金额：</label>
                <div class="col-sm-8">
                    <input name="amount" th:field="*{amount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">交易手续费：</label>
                <div class="col-sm-8">
                    <input name="charge" th:field="*{charge}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">交易卡号：</label>
                <div class="col-sm-8">
                    <input name="cardNum" th:field="*{cardNum}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">卡组织   1-银联 2-银联国际 3-JCB 4-VISA 5-MASTER：</label>
                <div class="col-sm-8">
                    <input name="cardOrg" th:field="*{cardOrg}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">卡类型 是银联卡的时候，该字段有值00-借记卡 01-贷记卡 02-准贷记卡 03-预付费卡 05-未知卡：</label>
                <div class="col-sm-8">
                    <select name="cardType" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">发卡行   卡BIN：</label>
                <div class="col-sm-8">
                    <input name="cardBin" th:field="*{cardBin}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">合作伙伴的产品名称：</label>
                <div class="col-sm-8">
                    <input name="partnerName" th:field="*{partnerName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">终端编号：</label>
                <div class="col-sm-8">
                    <input name="termId" th:field="*{termId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">原消费交易批次号：</label>
                <div class="col-sm-8">
                    <input name="oriBatno" th:field="*{oriBatno}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">原消费交易流水号：</label>
                <div class="col-sm-8">
                    <input name="oriSys" th:field="*{oriSys}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">版本号：</label>
                <div class="col-sm-8">
                    <input name="versio" th:field="*{versio}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">交易时间日期：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="localdatetime" th:value="${#dates.format(qbMerWithdrawal.localdatetime, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">钱宝交易流水号：</label>
                <div class="col-sm-8">
                    <input name="terminalSerial" th:field="*{terminalSerial}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">商户的一级合作伙伴号：</label>
                <div class="col-sm-8">
                    <input name="partnerNo" th:field="*{partnerNo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">商户编号：</label>
                <div class="col-sm-8">
                    <input name="merNo" th:field="*{merNo}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">商户名称：</label>
                <div class="col-sm-8">
                    <input name="merName" th:field="*{merName}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "qbMerWithdrawal/qbMerWithdrawal";
        $("#form-qbMerWithdrawal-edit").validate({
            focusCleanup: true
        });

        $("input[name='date']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-qbMerWithdrawal-edit').serialize());
            }
        }

        $("input[name='localdatetime']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>